import requests

from common.get_headers import get_headers


class TestEmpAdd(object):
    req_header = None

    def setup_class(self):
        self.req_header = get_headers()

    def test_query(self):
        resp = requests.get(url="http://ihrm2-test.itheima.net/api/sys/user?page=1&size=10000",
                            headers=self.req_header)
        print(resp.json())

# #发送请求
#         resp1 = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
#                       headers={"Content-Type":"application/json"},
#                       json= {"mobile": "13800000002", "password": "888itcast.CN764%..."})
#         # 查看结果
#         print(resp1.json().get("data"))
